package com.design.cjm.behavioral.mediator.example;

/**
 * @Author: Jie Ming Chen
 * @Date: 2018/9/26
 * @Version 1.0
 */
public class TestApp {

    public static void main(String[] args) {

        UnitedNationSecurityCouncil unsc = new UnitedNationSecurityCouncil();

        USA c1 = new USA(unsc);
        Iraq c2 = new Iraq(unsc);

        unsc.setColleague1(c1);
        unsc.setColleague2(c2);

        c1.declare("不准研制核武器，否则发动战争");
        c2.declare("我们没有核武器，也不怕侵略");
    }
}
